import instance from '@/utils/request'

/**
 * @name 登录
 * @param [username:String,password:Int]
 * @author 郭磊
 * @tiem 2024-3-12
 */
export function login(params) {
  return instance.post('/admin/v1/addons/worksystem/login/login', params)
}

/**
 * @name 退出登录
 * @author 郭磊
 * @tiem 2024-3-12
 */
export function unLogin(params) {
  return instance.post('/admin/v1/addons/worksystem/login/unLogin', params)
}

/**
 * @name 获取用户信息数据
 * @author 郭磊
 * @tiem 2024-3-12
 */
export function getUserinfo(params) {
  return instance.post('/admin/v1/addons/worksystem/login/getAdminRole', params)
}
